package leetcode.weekly.week299;

import leetcode.helper.H;

public class Solution4Test extends H {

	public void debug4(Solution4 so) {		
		H.compare(15, so.minimumScore(H.str2array3("[29,29,23,32,17]"), H.str2array1("[[3,1],[2,3],[4,1],[0,4]]")));
		H.compare(9, so.minimumScore(H.str2array3("[6,10,32,8,32,17,7,16,30]"), H.str2array1("[[2,1],[3,2],[3,5],[4,5],[5,0],[4,8],[8,7],[5,6]]")));
		H.compare(17, so.minimumScore(H.str2array3("[3,8,8,9,8,6,9,10,30,2,22,26,16,17,26,32,22,7]"), H.str2array1("[[12,2],[12,11],[12,13],[10,11],[12,1],[11,9],[11,8],[3,11],[15,2],[11,7],[12,4],[12,5],[16,10],[17,5],[11,6],[7,0],[1,14]]")));
		H.compare(9, so.minimumScore(H.str2array3("[1,5,5,4,11]"), H.str2array1("[[0,1],[1,2],[1,3],[3,4]]")));
		H.compare(8, so.minimumScore(H.str2array3("[28,24,29,16,31,31,17,18]"), H.str2array1("[[0,1],[6,0],[6,5],[6,7],[3,0],[2,1],[2,4]]")));
		H.compare(3, so.minimumScore(H.str2array3("[15,20,18,16,30,5,26,3,21,29]"), H.str2array1("[[5,8],[3,5],[5,7],[5,4],[4,6],[5,2],[3,0],[1,0],[7,9]]")));
		H.compare(0, so.minimumScore(H.str2array3("[5,5,2,4,4,2]"), H.str2array1("[[0,1],[1,2],[5,2],[4,3],[1,3]]")));
	}

	public void debug3(Solution4 so) {
//		H.compare(so, so);
	}

	public void debug2(Solution4 so) {
//		H.compare(so, so);
	}

	public void debug1(Solution4 so) {
//		H.compare(so, so);
	}

	public static void main(String[] args) {
		Solution4Test test = new Solution4Test();
		Solution4 so = new Solution4();
		test.debug1(so);
		test.debug2(so);
		test.debug3(so);
		test.debug4(so);
	}

}
